using System.Collections.Generic;
using System.IO;

namespace PropertyExpression.ControllableQuery.Toolkit
{
    internal static class InternalUtil
    {
        public static IEnumerable<string> ToLines(this string queryText)
        {
            using (var reader = new StringReader(queryText))
            {
                string line;
                while ((line = reader.ReadLine()) != null)
                    yield return line;
            }
        }
    }
}